#!/usr/bin python3
# -*- coding:UTF-8 -*-
# Author: nigo
import plotly.graph_objects as go

# 轨迹
map = go.Scattermapbox(fill = "toself",
    lon = ['116.39014720916748','116.39019012451172','116.39289379119873','116.39282941818236'],
    lat = ['39.90229625446474','39.899876440819796','39.89997521039643','39.90239502055347'],
    marker = { 'size': 10, 'color': "red" })
# 画布
fig = go.Figure(map)
# 更新样式
fig.update_layout(
        mapbox_style="stamen-terrain",
        mapbox_center={'lon': 116.39, 'lat': 39.90 },
        mapbox_zoom=14,
        margin={'r':20,'t':40,'l':20,'b':20})
# 显示画布
fig.show()
